//
//  QrcodeScanAddModel.m
//  AFNetworking
//
//  Created by Henry on 2023/7/18.
//

#import "QrcodeScanAddModel.h"
@interface QrcodeScanAddModel()
@end
@implementation QrcodeScanAddModel

-(instancetype)initWithQrcode:(NSString *)qrcode{
    if(self=[super init]){
        NSArray *array = [qrcode componentsSeparatedByString:@";"];
        if(array!=nil&&array.count==3){
            self.thingTypeName = [array objectAtIndex:1];
            self.thingName = [array objectAtIndex:2];
        }
    }
    return self;
}

@end
